class_name BuffButton
extends Button


@export var content_lbl: RichTextLabel

var _content_format = "[center][font_size=30][color={color}]{name}[/color][/font_size]
[font_size=25]
{desc}
[/font_size]
[/center]"

@export var buff: Buff:
    set(value):
        buff = value
        if buff != null:
            content_lbl.text = _content_format.format(buff.get_text_dict())
        else:
            content_lbl.text = ""


